export default {
  namespaced: true,
  state: {
    id: 0,
    name: '',
    communityId: '',
    userId: '',
    avatar: '',
    nickname: ''
  },
  mutations: {
    updateId (state, id) {
      state.id = id
    },
    updateName (state, name) {
      state.name = name
    },
    nickname (state, nickname) {
      state.nickname = nickname
    },
    communityId (state, communityId) {
      state.communityId = communityId
    },
    userId (state, userId) {
      state.userId = userId
    },
    avatar (state, avatar) {
      state.avatar = avatar
    }
  }
}
